using System;
using System.Collections.Generic;
using System.Text;
using OpenALDotNet;

namespace Barrage.Audios
{
    /// <summary>
    /// An Audio file that loads the buffer from a specified path
    /// </summary>
    public class SimpleAudioFile:AudioFile
    {
        AudioBuffer buffer;

        /// <summary>
        /// Constructor. Loads the buffer from the specified file
        /// </summary>
        /// <param name="file">File path for the buffer</param>
        public SimpleAudioFile(string file)
        {
            buffer = AudioBuffer.LoadFile(file);            
        }

        /// <summary>
        /// \internal Returns the loaded buffer
        /// </summary>
        public override AudioBuffer Buffer
        {
            get { return buffer; }
        }
    }
}
